toggle menu
flatInvoker
android
switch theme
search in API
reaktor-db
/
dev.shibasis.reaktor.io.adapters
/
[android]JetpackKeyValueStore
Jetpack
Key
Value
Store
android
class
JetpackKeyValueStore
<
Controller
>
(
controller
:
Controller
,
name
:
String
,
fileAdapter
:
FileAdapter
<
*
>
)
:
KeyValueStore
<
Controller
>
Members
Constructors
Jetpack
Key
Value
Store
Link copied to clipboard
android
constructor
(
controller
:
Controller
,
name
:
String
,
fileAdapter
:
FileAdapter
<
*
>
)
Properties
controller
Link copied to clipboard
android
val
controller
:
Controller
?
data
Store
Link copied to clipboard
android
val
dataStore
:
DataStore
<
Preferences
>
name
Link copied to clipboard
android
val
name
:
String
NULL_CONTROLLER
Link copied to clipboard
android
val
NULL_CONTROLLER
:
Error
ref
Link copied to clipboard
android
val
ref
:
WeakRef
<
Controller
>
scope
Link copied to clipboard
android
val
scope
:
CoroutineScope
Functions
clear
Link copied to clipboard
android
open
suspend override
fun
clear
(
)
get
Link copied to clipboard
android
open
suspend override
fun
get
(
key
:
String
)
:
String
?
handle
Link copied to clipboard
android
open
override
fun
handle
(
event
:
ControllerEvent
)
fun
handle
(
controller
:
Controller
,
event
:
ControllerEvent
)
invoke
Link copied to clipboard
android
operator
fun
<
Result
>
invoke
(
function
:
Controller
.
(
)
->
Result
?
)
:
Result
?
invoke
Suspend
Link copied to clipboard
android
suspend
fun
<
Result
>
invokeSuspend
(
function
:
suspend
Controller
.
(
)
->
Result
?
)
:
Result
?
null
Controller
Result
Link copied to clipboard
android
fun
<
T
>
nullControllerResult
(
)
:
Result
<
T
>
on
State
Changed
Link copied to clipboard
android
open
override
fun
onStateChanged
(
source
:
LifecycleOwner
,
event
:
Lifecycle.Event
)
remove
Link copied to clipboard
android
open
suspend override
fun
remove
(
key
:
String
)
set
Link copied to clipboard
android
open
suspend override
fun
set
(
key
:
String
,
value
:
String
)